/**
 * Created by zhai on 2018/1/5.
 */
export const api = {
    //客户列表
    GET_CLIENT_LIST: {
        url: '/guest/list',
        method: 'get'
    },
    //客户添加
    ADD_CLIENT: {
        url: '/guest/',
        method: 'post'
    },
    //客户删除
    DELETE_CLIENT: {
        url: '/guest/?guestId={guestId}',
        method: 'delete'
    },
    //客户详情
    CLIENT_DETAIL: {
        url: '/guest/{guestId}',
            method: 'get'
    },
    //新建回访记录
    ADD_RETURN_RECORD: {
        url: '/guest/visit',
        method: 'post'
    },
    //回访记录列表
    RETURN_RECORD_LIST: {
        url: '/guest/visit/{guestId}',
        method: 'get'
    },
    //删除回访记录数据
    DELETE_RETURN_RECORD: {
        url: '/guest/visit/{visitId}',
        method: 'delete'
    },
    //投资详情列表
    INVEST_DETAIL_LIST: {
        url: '/guest/investment/{guestId}',
        method: 'get'
    },
    // 导出文件
    EXPORT_FILE: {
        url: '/file/exportExcel',
        method: 'get'
    },
    // 删除文件
    DELETE_FILE: {
        url: '/file',
        method: 'delete'
    },
    // 下载文件
    DOWNLOAD_FILE: {
        url: '/file/',
        method: 'get'
    },
    // 预览文件校验
    PREVIEW_FILE_CHECK: {
        url: '/file/validatePreview',
        method: 'get'
    },
    // 预览文件
    PREVIEW_FILE: {
        url: '/file/preview',
        method: 'get'
    },
    // 获取文件夹列表
    GET_FILE_CHILD_LIST: {
        url: '/fileFloder',
        method: 'get'
    },
    //客户名检测
    CHECK_CLIENT_NAME: {
        url: '/guest/check',
        method: 'get'
    },
}
